package com.lvxingli.generateannotation.exception;

import lombok.Getter;

/**
 * @author lvxingli
 */
public class LxlException extends RuntimeException {

    /**
     * 异常编码
     */
    @Getter
    private final String code;

    public LxlException(ExceptionMsgEnum exceptionMsgEnum, String localizationDesc) {
        super(localizationDesc);
        this.code = exceptionMsgEnum.name();
    }

}

